#Wx::DEFAULT_FRAME_STYLE   Defined as wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION.  
#Wx::ICONIZE               Display the frame iconized (minimized). Windows only.  
#Wx::CAPTION               Puts a caption on the frame.  
#Wx::MINIMIZE              Identical to wxICONIZE. Windows only.  
#Wx::MINIMIZE_BOX          Displays a minimize box on the frame.  
#Wx::MAXIMIZE              Displays the frame maximized. Windows only.  
#Wx::MAXIMIZE_BOX          Displays a maximize box on the frame.  
#Wx::STAY_ON_TOP           Stay on top of all other windows, see also wxFRAME_FLOAT_ON_PARENT. Windows only.  
#Wx::SYSTEM_MENU           Displays a system menu.  
#Wx::SIMPLE_BORDER         Displays no border or decorations. GTK and Windows only.  
#Wx::RESIZE_BORDER         Displays a resizeable border around the window.  
#Wx::FRAME_TOOL_WINDOW     Causes a frame with a small titlebar to be created; the frame does not appear in the taskbar under Windows.  
#Wx::FRAME_NO_TASKBAR      Creates an otherwise normal frame but it does not appear in the taskbar under Windows (note that it will 
#                          minimize to the desktop window which may seem strange to the users and thus it might be better to use this 
#                          style only without wxMINIMIZE_BOX style). Has no effect under other platforms.  
#Wx::FRAME_FLOAT_ON_PARENT The frame will always be on top of its parent (unlike Wx::STAY_ON_TOP). A frame created with this style 
#                          must have a non-NULL parent.  

require 'wx'
include Wx

class DrawUtil
  
  #the available value of the style parameter and a convenient way to use some common style unit
  $borders = {"Default" => Wx::DEFAULT_FRAME_STYLE,
                   "Iconize" => Wx::ICONIZE,
                   "Caption" => Wx::CAPTION, 
                   "Minimize" => Wx::MINIMIZE | Wx::CAPTION,
                   "Minimize_Box" => Wx::MINIMIZE_BOX | Wx::SYSTEM_MENU | Wx::CAPTION,
                   "Maximize" => Wx::MAXIMIZE,
                   "Maximize_Box" => Wx::MAXIMIZE_BOX | Wx::SYSTEM_MENU | Wx::CAPTION,
                   "Stay_on_Top" => Wx::STAY_ON_TOP,
                   "System_Menu" => Wx::SYSTEM_MENU | Wx::CAPTION,
                   "Simple_Border" => Wx::SIMPLE_BORDER,
                   "Resize_Border" => Wx::RESIZE_BORDER,
                   "Frame_Tool_Window" => Wx::FRAME_TOOL_WINDOW | Wx::SYSTEM_MENU | Wx::CAPTION,
                   "Frame_No_Taskbar" => Wx::FRAME_NO_TASKBAR,
                   "Double_Border" => Wx::DOUBLE_BORDER}
            
  #create a frame
  #app : the App class of the Application
  #parent : the parent frame of the created frame
  #mark : the mark
  #title : the title of the created frame
  #size : the initializing size of the created frame
  #style : the style of the created frame
  def DrawUtil.createFrame(app,parent,mark,title,size,style)
    app.frame=Wx::Frame.new(parent,mark,title,size,style)
  end
  
  def DrawUtil.parseMenu
  end
  
  def DrawUtil.parseToolbar
  end
  
  def DtawUtil.parse
  end
end